
<?php $this->placeholder('onReady')->captureStart() ?>
    $("#<?php echo $this->id_tablesorter?>").tablesorter({sortList: [[13,1],[0,1]]});
 <?php $this->placeholder('onReady')->captureEnd() ?>





<div class="contenedor_tablesorter">
<?php echo $this->anchor($this->controllerName.'/insertar','Añadir una oferta',array('class'=>'utiladd'));?>

<table id="<?php echo $this->id_tablesorter?>" width="100%" class=""> 
    <caption>
        <div style="float: left;">Se han encontrado <?=count($this->rows)?> registros con sus criterios de busqueda.</div>
        <div id="total_table_filter" style="float: right;">Display <span class="filtradas"><?=count($this->rows)?></span> of <?=count($this->rows)?></div>    
    </caption>
	<thead>
		<tr>
            <th><?php echo $this->translate("Actividad");?> </th>
            <th><?php echo $this->translate("Cliente")?></th>
            <th><?php echo $this->translate("PEP");?> </th>
            <th><?php echo $this->translate("Último Comentario");?> </th>
            <th><?php echo $this->translate("Datacenter")?></th>
            <th><?php echo $this->translate("Responsable")?></th>
            <th><?php echo $this->translate("Estado")?></th>
            <th><?php echo $this->translate("Area")?></th>
            <th><?php echo $this->translate("Implantación")?></th>
            <th><?php echo $this->translate("Superficie")?> m<sup>2</sup></th>
            <th><?php echo $this->translate("Potencia")?> kW</th>
            <th><?php echo $this->translate("Coste")?></th>
            <th><?php echo $this->translate("Venta")?></th>
            <th class="configure" ></th> 
    	</tr>
        
   	
    </thead>
    <tbody>
        <?php echo $this->partialLoop($this->controllerName.'/fila.phtml', (array)$this->rows); ?>	
    </tbody>
   	<tfoot>
		<tr>
            <th colspan="9">&nbsp;</th>
            <th><?php echo $this->NumEs($this->suma["superficie"],0)?> m<sup>2</sup></th>
            <th><?php echo $this->NumEs($this->suma["potencia"],0)?> kW</th>
            <th><?php echo $this->NumEs($this->suma["coste"],0)?> €</th>
            <th><?php echo $this->NumEs($this->suma["venta"],0)?> €</th>
            <th>&nbsp;</th> 
    	</tr>
    </tfoot> 
</table>
</div>

